<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    function Xiaoming(name,age,sex,friend,sa){
        this.name=name;
        this.age=age;
        this.sex=sex;
        this.friend=friend;
        this.sa=sa;
        this.say=function(){
            console.log("小明的姓名:"+this.name+"小明的年龄:"+this.age+"小明的性别:"+this.sex+"小明有无男朋友:"+this.friend+"小明会说:"+this.sa)
        }


    }

    var xiaoming=new Xiaoming("小明",18,"女","有","123");
    xiaoming.say()
</script>
</body>
</html>